﻿using UnityEngine;
using System.Collections;

public class UI : MonoBehaviour
{

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }

    void OnGUI()
    {
        if (GameManager.isStarted)
        {
            GUIStyle style = new GUIStyle();
            style.fontSize = 18;
            if (GameManager.score < 0)
            {
                style.normal.textColor = Color.red;
            }
            else
            {
                style.normal.textColor = Color.black;
            }
            GUI.Label(new Rect(100, 30, 100, 100), "Score:" + GameManager.score, style);
        }
    }
}
